LActivate
LActivate Activate or deactivate a list (after activate event) ListHandle theList ; handle leading to a ListRec Call LActivate in response to an activate event for a list's enclosing window. It highlights or unhighlights any cells that are currently selected and shows or
hides the scroll bars (if any).
activateIt specifies whether to activate or deactivate the list. It is one of:
FALSE Deactivate the list. theList is a handle leading to a variable-length ListRec structure. It is a value previously obtained via LNew.
Notes: The List Manager does NOT take care of the size box (grow icon) of lists that can be sized, so you must draw or erase it yourself. Here's a fragment
of a main event loop that maintains a growable list:
WindowPtr listWindow; // assume this already exists ListHandle theList;
// in event loop
if ( theEvent.what == activateEvt ) {
if ( theEvent. message == (long)listWindow ) {
if ( theEvent.modifiers & activeFlag )
// it's an activate request
else
}
}
}
You may not need or want to deactivate a list displayed in a modeless dialog
entirely.